﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DatabaseManager.WinForms.Services
{
    /// <summary>
    /// 模型生成结果封装类
    /// </summary>
    public class GenerationResult
    {
        public bool IsSuccess { get; }
        public string Message { get; }

        private GenerationResult(bool isSuccess, string message)
        {
            IsSuccess = isSuccess;
            Message = message;
        }

        // 显式指定返回类型的构造函数调用（兼容 C#7.3）
        public static GenerationResult Success(string message) => new GenerationResult(true, message);
        public static GenerationResult Failure(string message) => new GenerationResult(false, message);
    }
}
